package cn.iocoder.yudao.module.project.controller.admin.productioncode.vo;

import lombok.*;

import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 成品码信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProductionCodePageReqVO extends PageParam {

    @Schema(description = "成品名称", example = "芋艿")
    private String name;

    @Schema(description = "内码编号")
    private String internalCode;

    @Schema(description = "订单编号")
    private String orderCode;

    @Schema(description = "型号", example = "1")
    private String type;

    @Schema(description = "成品下线时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] downlineTime;

    @Schema(description = "下线状态(0:未下线:1下线)")
    private Integer downlineStatus;

    @Schema(description = "操作员", requiredMode = Schema.RequiredMode.REQUIRED)
    private String operator;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;


    @Schema(description = "产品编号,用于查询条件", example = "芋艿")
    private String productCode;

    @Schema(description = "物料编码,用于查询条件", example = "芋艿")
    private String materialCode;

    @Schema(description = "查询日期,用于查询条件")
    private String[] dateReq;

    @Schema(description = "查询开始日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private Date startDate;

    @Schema(description = "查询结束日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private Date endDate;

    @Schema(description = "关联工位ID")
    private Integer associatedWorkstationId;

    @Schema(description = "关联工位用户ID")
    private Integer associatedWorkstationUserId;

}